Skip to content

fix: backport Playwright Windows socket mitigation / 回移 Playwright Windows socket 缓解措施 - #217

Merged
dormonbear merged 7 commits into
mainfrom
codex/playwright-windows-socket-20261030
Oct 30, 2026
Merged

dormonbear merged 7 commits into
mainfrom
codex/playwright-windows-socket-20261030

Conversation

@dormonbear

@dormonbear dormonbear commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Current head / 当前提交

Head dec90fac7ebc1dbd4dfd7881174af5b338286793 integrates merged main 2f53210ed471d37987c5a0f79f144dac59ba62e7 with an identical file tree to previous head d99fab1679f4c01c583dfe465bc4a54c80bd43da. After integration, the incremental frozen install and launch-argument check passed locally; an earlier clean install passed on the identical tree. CI on the identical previous tree passed on macOS and Windows, including 279 production-browser cases per platform; native Windows acceptance also passed. Fresh hosted CI passed on both platforms, and native Windows acceptance passed on this head.

提交 dec90fac7ebc1dbd4dfd7881174af5b338286793 已整合合并后的主线 2f53210ed471d37987c5a0f79f144dac59ba62e7,文件树与此前提交 d99fab1679f4c01c583dfe465bc4a54c80bd43da 完全一致。整合后,增量冻结安装及启动参数检查在本地通过;此前全新安装也在相同文件树上通过。此前相同文件树的 CI 在 macOS 和 Windows 均通过,每个平台包含 279 项正式构建浏览器用例;Windows 原生验收也通过。此提交的最新托管 CI 在两个平台均通过,Windows 原生验收也通过。

Problem and change / 问题与变更

Windows production-browser runs have intermittently failed to load the loopback app or its assets with net::ERR_NO_BUFFER_SPACE. Playwright #43545 reports a closely matching Windows/Chromium failure, and Playwright #43605 merged a mitigation on 2026-10-25 after the latest stable release. This backports its single TcpPortRandomizationWin entry into the existing disabled-feature list of the pinned test-only playwright-core@1.61.0. It does not append another --disable-features argument, change the application, drop tests, or add retries.

This is a mitigation supported by upstream evidence, not proof that our specific failures have the same cause. The first-failure and after-suite aggregate diagnostics remain active, and #205 stays open until sustained evidence supports closure. Remove the version-specific patch when upgrading to a stable Playwright release that contains the upstream change.

Windows 正式构建浏览器测试间歇性无法加载本地回环应用或其资源,并返回 net::ERR_NO_BUFFER_SPACE。Playwright #43545 报告了高度相似的 Windows/Chromium 故障,Playwright #43605 于 2026-10-25 在最新稳定版发布后合并了缓解措施。本变更将其单个 TcpPortRandomizationWin 条目回移到固定的测试专用 playwright-core@1.61.0 现有禁用特性列表中;不会追加第二个 --disable-features 参数、修改应用、删除测试或增加重试。

这是有上游证据支持的缓解措施,尚不能证明我们的具体故障具有相同根因。首次失败及套件结束后的聚合诊断继续保留,在持续证据支持关闭前 #205 保持开放。升级到已包含上游改动的 Playwright 稳定版时应移除此特定版本补丁。

Dependency and validation / 依赖与验证

This PR builds on merged #216: controlled incremental installs with pnpm 10.28.0 and 10.34.0 left the new patch unapplied, while the qualified 10.34.9 applied it correctly. Both clean and incremental 10.34.9 frozen installs pass the actual launch-argument regression, which checks that one effective feature list contains all 16 original defaults plus the mitigation. The test uses a Node executable that exits on Chromium flags; it starts no browser or server.

The unpatched launch regression failed as expected. The full 42 Node toolchain tests, 86 Python scripts (one Windows-only test skipped on macOS), frontend typecheck, actionlint, build and six production-browser SOQL cases passed locally. All 15 production output files matched the parent by path and SHA-256. Paired pnpm 10.34.9 audits are identical, with 14 existing advisory records and exit 1. Full Windows/macOS CI and native Windows acceptance passed on the current head.

本 PR 基于已合并的 #216 之上:受控增量安装中,pnpm 10.28.0 和 10.34.0 未应用新补丁,而已验收的 10.34.9 正确应用。10.34.9 的全新及增量冻结安装均通过真实启动参数回归;测试验证仅有一个生效的特性列表,其中包含 16 项原有默认值和该缓解项。测试使用遇到 Chromium 参数即退出的 Node 可执行文件,不启动浏览器或服务器。

未打补丁的启动回归按预期失败。本地全部 42 项 Node 工具链测试、86 项 Python 脚本测试(其中一项仅 Windows 测试在 macOS 跳过)、前端类型检查、actionlint、构建及六项正式构建 SOQL 浏览器用例通过。15 个正式构建产物的路径及 SHA-256 与父分支一致。配对的 pnpm 10.34.9 审计完全一致,仍有 14 条既有公告记录,退出码为 1。当前提交已通过完整 Windows/macOS CI 和 Windows 原生验收。

Related to #205. / 关联 #205。

@dormonbear
dormonbear changed the base branch from codex/pnpm-security-20261030 to main October 30, 2026 04:16
@dormonbear
dormonbear marked this pull request as ready for review October 30, 2026 04:42
@dormonbear
dormonbear merged commit 64216f9 into main Oct 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant